import { post,get,uploadFile } from "../request/request";

export const getUserInfo = ()=>{
	return get('/system/ForUser')
}

// 修改用户信息
export const  modifyUserInfo =(userdto)=>{
	return post('/system/ForUser/update',userdto)
}

// 头像上传
export const uploadAvatarFile=(filePath)=>{
	
	return uploadFile('/common/upload',filePath,'files')
}

// 退出登录
export const logOutApi = ()=>{
	return post()
}